﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Web;
using System.Web.Mvc;

namespace PruebaMVC.Controllers
{
    public class MonedasController : Controller
    {
        //
        // GET: /Monedas/
        public ActionResult Index()
        {
            return View();
        }

        [RequiredRequestValue("moneda")]
        public ActionResult Index(string moneda)
        {
            ViewBag.Moneda = moneda;

            return View("Detalles");
        }

        [RequiredRequestValue("moneda", "variante")]
        public ActionResult Index(string moneda, string variante)
        {
            ViewBag.Moneda = moneda + " " + variante;

            return View("Detalles");
        }

        public ActionResult DetallesNivel1(string moneda)
        {
            ViewBag.Moneda = moneda;

            return View("Detalles");
        }

        public ActionResult DetallesNivel2(string moneda, string variante)
        {
            ViewBag.Moneda = moneda + " " + variante;

            return View("Detalles");
        }
    }
}
